package com.aaa.feign;

import com.aaa.entity.Product;
import com.aaa.factory.ProductFeignFallBackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "shop-product" , fallbackFactory = ProductFeignFallBackFactory.class)
public interface ProductFeign {
    @RequestMapping("/product/get/{pid}")
    public Product getShopInfo(@PathVariable Long pid);
}
